#include "Spot.h"

bool Spot::handleProperties(TiXmlElement *element, int &enabled, float &angle, float &exponent) {

	if (element->QueryIntAttribute("enabled", &enabled) == TIXML_SUCCESS &&
		element->QueryFloatAttribute("angle", &angle) == TIXML_SUCCESS &&
		element->QueryFloatAttribute("exponent", &exponent) == TIXML_SUCCESS) {
			return NO_ERROR;
	}
	
	return ERROR;
}